<script>
	export default {
		onLaunch: function() {
			//#ifdef APP-PLUS
			plus.screen.lockOrientation("portrait-primary");
			//#endif
			
			uni.onTabBarMidButtonTap(() => {
				uni.navigateTo({
					url: "/pages/newOrder/index",
				});
			});
		},
		onShow() {
			this.$api.initApi().then(res => {
				// console.log(res);
			})
		},

		globalData: {

			BLEInformation: {
				platform: "",
				deviceId: "",
				deviceName: "",
				writeCharaterId: "",
				writeServiceId: "",
				notifyCharaterId: "",
				notifyServiceId: "",
				readCharaterId: "",
				readServiceId: ""
			},
			versionInfo: {

			},
			localVersion: {
				//#ifdef APP-PLUS
				version: plus.runtime.version || "0.0.1",
				//#endif
				//#ifndef APP-PLUS
				version: "0.0.1",
				//#endif

			},
			userInfo: {

			},
		},
		methods: {}

	};
</script>
<style lang="scss">
	@import "uview-ui/index.scss";

	page {
		background: #f1f1f1;
		position: relative;
		font-size: 32rpx;
		color: #1b253a;
		font-family: "SimSun", "sans-serif" !important;
		/* #ifdef MP-WEIXIN */
		input{
			text-indent: 0 !important;
			padding: 0 1em !important;
		}
		table {
			text-align: center !important;
			display: table !important;
			tr {
				display: table-row !important;
			}
			th {
				display: table-cell !important;
			}
			td {
				display: table-cell !important;
			}
		}
		/* #endif */
	}

	// select {
	//   background: #fac!important;
	// 	padding: 20rpx;
	// }
	view,
	scroll-view {
		box-sizing: border-box;
	}

	image {
		width: 100%;
		height: 100%;
	}


	button {
		background-color: transparent;
		position: relative;
		-webkit-align-items: center;
		align-items: center;
		-webkit-justify-content: center;
		justify-content: center;
		box-sizing: border-box;
		padding: 0 15px;
		text-align: center;
		vertical-align: middle;
		-webkit-appearance: none;
		-webkit-text-size-adjust: 100%;
		font-size: 14px;
		font-size: var(--button-default-font-size, 14px);
		transition: opacity 0.2s;
		transition: opacity var(--animation-duration-fast, 0.2s);
		border-radius: 2px;
		border-radius: var(--button-border-radius, 2px);
		height: 44px;
		height: var(--button-default-height, 44px);
		line-height: 42px;
		line-height: var(--button-line-height, 42px);
	}

	button:before {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 100%;
		height: 100%;
		border: inherit;
		border-radius: inherit;
		-webkit-transform: translate(-50%, -50%);
		transform: translate(-50%, -50%);
		opacity: 0;
		content: " ";
		background-color: #000;
		background-color: var(--black, #000);
		border-color: #000;
		border-color: var(--black, #000);
	}

	button:after {
		border-width: 0;
	}

	.button-primary {
		min-width: 280rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 44px;
		color: #fff;
		background: #fe3430;
		border-radius: 44rpx;
		box-shadow: 0px 5px 10px #fe3430;
	}

	.button-mini {
		min-width: 74rpx;
		height: 50rpx;
		font-size: 24rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
		background: #fe3430;
		border-radius: 25rpx;
	}

	.container {
		position: relative;
		background-color: #fafbfc;
		width: 100vw;
		min-height: 92vh;
		// env(safe-area-inset-bottom)
	}

	uni-tabbar {
		.uni-tabbar {
			// tab背景
			position: relative;

			// background-image: linear-gradient(to top, #FAF8F8, #FFFFFF)!important; // tab背景图片或者渐变色，背景色和背景图片最多选择一个进行设置
			.uni-tabbar__bd {
				bottom: 0;

				// tabBar单项
				.uni-tabbar__icon {
					// 图标
					width: 40rpx !important;
					height: 40rpx !important;
				}

				.uni-tabbar__label {
					// 文字
					font-size: 12rpx !important;
				}
			}

			.uni-tabbar__item {
				position: relative;

				.uni-tabbar__mid {
					position: absolute;

					img {
						background-color: #fff;
						margin: -20rpx;
						padding: 10rpx;
						border-radius: 50%;
					}
				}
			}
		}
	}
</style>